<?php

	include('dtc_global.php');
	
	if($_REQUEST['do']=='ketqua')
		{
			$ketqua = $dtc_do->load('class_search')->goi_y_ket_qua($_REQUEST['tieu_de'], 'sanpham', 'tieu_de');
			foreach($ketqua as $key=>$value)
				{
					echo '<div style="cursor:pointer">'.$value['tieu_de'].'<div>';
				}
			exit;
		}
	
	if(isset($_POST['submit']))
		{
			$ketqua=$dtc_do->load('class_search')->ket_qua_tim_kiem($_POST,1 ,10);
			foreach($ketqua as $key=>$value)
				{
					foreach($value as $khoa=>$ketqua)
						{
							echo $khoa.':'.$ketqua.'</br>';
						}
						echo '</br></br>';
				}
			exit();
		}
	
?>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>

<?php
	echo $dtc_template->template_replace('live_search/form_live_search', $dtc_template->template_normal('live_search/select_box_list_chuyen_muc'));
?>